package com.hellowx.qydcdev.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * Created on 2022/1/10.
 *
 * @author Hello WX
 */
@Data
public class OrderVO{

    /**
     * 主键,标识订单
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 顾客id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long customerId;

    /**
     * 总金额
     */
    private Integer totalPrice;

    /**
     * 状态:
     * 0-未支付
     * 1-已支付
     * 2-取消
     * 3-退订
     */
    private Integer status;

    /**
     * 支付编号
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long payNo;

    /**
     * 地址id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long addressId;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 店铺id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long businessId;

    /**
     * 店铺名称
     */
    private String businessName;

    /**
     * 收货地址
     */
    private Address address;

    /**
     * 订单商品列表
     */
    public List<OrderGoods> orderGoodsList;
}
